<?php 
    echo validation_errors("<li>", "</li>"); 
    if(isset($error)) {
        echo "<div class='mess_error'>";
        echo    "<ul>";
        echo        "<li>$error</li>";
        echo    "</ul>";
        echo "</div>";
    }
?>
<div id="formerror"></div>
<!-- Add Form -->
<div id="formaction_advart">
    <div class="formPanel">
        <fieldset>
            <legend>Thêm bài viết quảng cáo</legend>
            <form id="input_form_advart" method="post" action="<?php echo base_url(); ?>admin_combo/article/add" enctype="multipart/form-data">
                <label>Category</label>
            <select id="slCate" name="slCate">
                <?php
                    if(isset($info_cate))
                        callMenuCate($info_cate);
                ?>
            </select>
            <br />
            <label>Tiêu Đề </label><input type="text" id="txtTitle" name="txtTitle" size="60" class="required" /><br />
            <label>Thông Tin </label><input type="text" id="txtInfo" name="txtInfo" size="60" class="required" /><br />
            <label>Chi Tiết </label><br /><textarea id="txtDetail" name="txtDetail" cols="50" rows="20" class="required"></textarea><br />
            <script language="javascript">
                CKEDITOR.replace("txtDetail");
            </script>
            <label>Hình Ảnh </label><input type="file" id="fileImage" name="fileImage" size="60" /><br />
            <label>Tác Giả </label><input type="text" id="txtPrice" name="txtAuthor" size="30" class="required" /><br />
            <label>&nbsp;</label><input type="submit" id="btnSubmit_advart" class="button" name="ok" value="Submit" />
            </form>
        </fieldset>
    </div>
</div>
<div id="dialog" title="Warning"></div>